luci-app-firewall: repair handleAdd for rules.js
authorPaul Donald <[email protected]>
Mon, 31 Mar 2025 19:41:11 +0000 (21:41 +0200)
committerPaul Donald <[email protected]>
Mon, 31 Mar 2025 19:41:11 +0000 (21:41 +0200)
commitd356e30ac13cc1648045d8a0bcb5dd92630778f4
tree73c432c8c53f856a80d8d798543729961f25aef4
parenta36ef776a6adf58bb5aec7150f395d4122c93552
luci-app-firewall: repair handleAdd for rules.js

handleAdd did not work correctly for a while: the defaults were not
propagated, and some state was not cleaned up (try:
firewall rules -> add -> no changes -> click dismiss -> press save).

The state is now properly removed when pressing dismiss, by stashing
addedSection correctly under the map m and not in this.

Signed-off-by: Paul Donald <[email protected]>
applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js